<script type="text/javascript">
$(document).ready(function() {
    $("#client_form_user_info_address").autocomplete({  
        source: function(req, add){
            $.getJSON("<?php echo LinkGen::getInstance(LinkGen::RAW_ACTION)->link(null, 
                    array('module' => 'clientsFormWidget', 'action' => 'getAddress')) ?>", req, 
                            function(data) {
                                add(data);  
                            });  
                        },  

                        select: function(e, ui) {  
//                            var runner = ui.item;
//
//                            $('.form_input_runner_firstname').val(runner.name);
//                            $('.form_input_runner_lastname').val(runner.lastname);
//                            $('#form_hidden_runner_id').val(runner.id);
                        }
                    }); 
                });
</script>


<?php // Thank god this got called back
//    $(document).ready(function () {
//        $('.one_third input, .one_third select').attr('disabled', true);
//    });
//    
//    $('.one_third').mouseover(function() {
//       if ($('.one_third input').attr('disabled')) {
//           alert('<?php //echo __('Please answer the questions on the left first') ');
//       }
//    });
//    
//    $('.two_third tr td input, .two_third tr td select').blur(function () {
//        var filled = true;
//        $('.two_third tr td').find("input, select").each(function() {
//            if ($(this).val() == "") {
//               filled = false;
//            }
//        });       
//        
//        if (filled) {
//            $('.one_third input, .one_third select, .one_third radio').attr('disabled', false);
//        }
//    });
?>